package com.linkhub.oms.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: ResponseCode
 * @Author: echo
 * @Date: 2024/3/2 21:29
 * @Version: 1.0
 */
@Getter
@AllArgsConstructor
public enum ResponseCodeEnum {
    /**
     * 成功
     */
    SUCCESS("0", "ok"),
    /**
     * 系统错误
     */
    SYS_ERROR("-1", "system error"),

    /**
     * 未登录
     */
    NOT_LOGIN("1000", "not login"),
    /**
     * 登录超时
     */
    LOGIN_TIMEOUT("1001", "session timeout"),

    /**
     * 被挤线
     */
    BE_REPLACED("1002", "be replaced"),

    /**
     * 权限异常
     */
    AUTH_ERROR("2000", "unauthorized"),

    /**
     * 非法请求
     */
    ILLEGAL_REQUEST("2001", "illegal request"),

    /**
     * 业务异常
     */
    SERVICE_ERROR("3000", "biz error"),

    /**
     * 参数错误
     */
    PARAMS_ERROR("4000", "invalid param"),


    ;


	private final String code;
	private final String msg;



}